package com.ziven.common.widget.setting;

import android.view.View;

import androidx.annotation.NonNull;

import com.ziven.easygo.ui.OnItemClickListener;

/**
 * @author Ziven
 */
public interface OnPreferenceItemClickListener extends OnItemClickListener<BasePreferenceItem> {

    /**
     * onItemClick
     * @param data BasePreferenceItem
     * @param position Position
     */
    @Override
    default void onItemClick(BasePreferenceItem data, int position) {}

    /**
     * onItemClick
     * @param data BasePreferenceItem
     * @param position Position
     * @param view View
     * @return return
     */
    boolean onItemClick(BasePreferenceItem data, int position, @NonNull View view);
}
